package mblog.core.api;

/**
 * Created by zhangyue on 16/4/10.
 */
public class UnCheckedException extends  RuntimeException{

    private int code;

    private String[] params;

    public UnCheckedException(int code) {
        this.code = code;
    }

    public UnCheckedException(int code, String message) {
        super(message);
        this.code = code;
    }

    public UnCheckedException(int code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public UnCheckedException(int code, String[] params) {
        this.code = code;
        this.params = params;
    }

    public UnCheckedException(int code, String message, String[] params) {
        super(message);
        this.code = code;
        this.params = params;
    }

    public UnCheckedException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public UnCheckedException(int code, String message, String[] params, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.params = params;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String[] getParams() {
        return params;
    }

    public void setParams(String[] params) {
        this.params = params;
    }
}
